"""
读取文本：read_csv()
"""
import numpy as np
import pandas as pd
# data = pd.read_csv('../data_test/电信用户流失数据/CustomerSurvival.csv',
#                    header=None,
#                    names=['index', 'pack_type', 'extra_time', 'extra_flow', 'pack_change',
#                                                    'contract', 'asso_pur', 'group_user', 'use_month', 'loss'],
#                    index_col='index',
#                     usecols =['index','pack_type','extra_time','extra_flow','loss']

                   # )
# print(data)
# data.to_csv('./new_data.csv')
data = pd.read_excel('../data_test/电信用户流失数据/CustomerSurvival.xlsx')
print(data)

